From: Florian Müllner Date: Mon, 6 Jul 2020 23:21:18 +0000 (+0200) Subject: unlockDialog: Small cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~155 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=03bcd4c05b8dee0c9085128759e7797410a2a16d;p=gnome-shell.git unlockDialog: Small cleanup It's silly to initialize a variable to 0 right before setting it to its actual value. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1352 --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index ad3aab977..aea7b6004 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -573,11 +573,9 @@ var UnlockDialog = GObject.registerClass({ this._screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' }); - this._userSwitchEnabledId = 0; this._userSwitchEnabledId = this._screenSaverSettings.connect('changed::user-switch-enabled', this._updateUserSwitchVisibility.bind(this)); - this._userLoadedId = 0; this._userLoadedId = this._user.connect('notify::is-loaded', this._updateUserSwitchVisibility.bind(this));